home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1998-02-02 | 995 b | 43 lines |
- Dim X(4)
- Screen Open 0,320,256,16,0
- Screen Hide 0
- Hide On : Curs Off : Flash Off
- CHANGE_FONT["Diamond",20,0]
- Ink 15,0
- Data "This is","just a","little","experiment!"
- For A=1 To 4 : Read TXT$
- X(A)=Text Length(TXT$)
- Cls : Text 0,14,TXT$ : Rem This is cheating, I know text Base is 14
- Get Sprite A,0,0 To X(A),20 : Rem Ditto
- Next : Cls 0
- '
- 'Here we go then...
- '
- For A=1 To 4
- X=160-X(A)/2
- MASK=2^(A-1)
- Set Bob A,,MASK,
- Bob A,X,70,A
- Next
- Colour 15,$FFF : Pen 15 : Paper 0
- Locate 0,20 : Centre "So what is the meaning of this?"
- Print : Centre "Press a key and watch carefully!"
- Screen Show 0
- Wait Key : F=$FFF
- Fade 1,0,F,0,F,0,F,0,F,0,F,0,F,0,F,0
- Wait 50
- Fade 3,0,0,F,F,0,0,F,F,0,0,F,F,0,0,F
- Wait 100
- Fade 3,0,0,0,0,F,F,F,F,0,0,0,0,F,F,F
- Wait 100
- Fade 3,0,0,0,0,0,0,0,0,F,F,F,F,F,F,F
- Wait 100
- Fade 2
- Wait 100 : Bob Off
- End
- '
- 'The below is a closed MC procedure
- '
- Procedure CHANGE_FONT[NAME$,HEIGHT,STYLE]
- ' COMPILED PROCEDURE -- can't convert this to AMOS code
- End Proc